package com.example.mvvmdemo.database.room;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Update;

/**
 * User: Chentuisi
 * Date: 2023/8/8
 */
@Dao
public interface DataDao<T> {
    @Insert
    long insertData(T data);
    @Update
    void updateData(T newdata);
    @Delete
    void deleteData(T data);
}
